<div class="layui-fluid">
	<div class="layui-row">
		<div class="">
			<div class="" id="looktop1">

			</div>
		</div>
	</div>

	<div class="jshomttablebox">
		<div class="tabtitle">
			资源管理
		</div>
		<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
			<ul class="layui-tab-title">
				<li class="layui-this">视频列表</li>
				<li>线下课程</li>
				<li>实操课程</li>
				<li>回答问题</li>
				<li>提问</li>
			</ul>
			<div class="layui-tab-content">
				<!-- 视频列表 -->
				<div class="layui-tab-item layui-show">
					<div class="layui-row">
						<div class="layui-col-xs12">
							<div class="layui-card fllextopbox">
								<div class="">

									<a href="#/video/upvideo" class="layui-btn">发布视频</a>
								</div>
								<form class="layui-form" action="">
									<div class="layui-inline">
										<input type="text" class="layui-input" id="datavideo" placeholder="选择日期">
									</div>
									<div class="layui-inline ">
										<select name="tbType" lay-filter="tbTypefilter">
											<option value=" ">全部</option>
											<option value="1">已上架</option>
											<option value="2">预上架</option>
											<option value="3">已下架</option>
											<option value="4">审核中</option>
										</select>
									</div>
									<div class=" tablesearch iconfont iconsousuo ">
										<input type="text" class="layui-input" id="videokey" placeholder="请输入搜索关键字">
									</div>
								</form>
							</div>
						</div>
					</div>
					
					<div class="layui-row " id="videocards">
						<div class="no404">
							<img src="../../images/noimg/noplay.png" >
						</div>
						
					</div>
					<div class="pagerow">
						<div id="videopage">
						</div>
					</div>

				</div>
				<script type="text/html" id="videoid">
					{{#  layui.each(d.data, function(index, item){ }}
							<div class="layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg3 " data-id="{{item.id}}" >
							<div class="videocard">
								
						
							<a href="#/video/homepage?tbId={{item.id }}">
							
								<div class="videoimg" style="background-image:url({{ G_File_Url+item.image1}})">
								{{#  if(item.tbType === 1){ }}
								  <div class="videostates">已上架</div>
								{{#  }else if(item.tbType === 3){ }} 
								 	<div class="videostates" style="background: #ff5454;">已下架</div>
								{{#  }else if(item.tbType === 2){ }} 
								
										<div class="videostates"  style="background: #ec7733;">预上架</div>
								{{#  }else if(item.tbType === 4){ }}
								
										<div class="videostates"  style="background: #fec35d;">审核中</div>
								{{#  } }} 
									<div class="videogmask">
										查看详情
									</div>
								</div>
								<div class="videocont">
									<div class="videotitle">
									{{ item.title }}
									</div>
									<div class="videodata">
										{{ item.createTime }}
											浏览：{{ item.vistnum }}次
									</div>
								
								</div>
								</a>	</div>
							</div>
						{{#  }) }} 
						
						</script>


				<!-- 视频列表 end-->

				<!-- 线下课程列表 -->
				<div class="layui-tab-item">
					<div class="layui-row">
						<div class="layui-col-xs12">
							<div class="layui-card fllextopbox">
								<div class="">

									<a href="#/xxcourse/add" class="layui-btn">添加课程</a>
								</div>
								<form class="layui-form" action="">
									<div class="layui-inline">
										<input type="text" class="layui-input" id="dataxx" placeholder="选择日期">
									</div>
									<div class="layui-inline ">
										<select name="tbType" lay-filter="xxtbTypefilter">
											<option value=" ">全部</option>
											<option value="1">已结束</option>
											<option value="2">进行中</option>
										</select>
									</div>
									<div class=" tablesearch iconfont iconsousuo ">
										<input type="text" class="layui-input" id="xxkey" placeholder="请输入搜索关键字">
									</div>
								</form>
							</div>
						</div>
					</div>
					<div class="layui-row " id="xxcards">
					</div>
					<div class="pagerow">
						<div id="xxpage">
							<div class="no404">
								<img src="../../images/noimg/noplay.png" >
							</div>
						</div>
					</div>


				</div>

				<script type="text/html" id="xxid">
					{{#  layui.each(d.data, function(index, item){ }}
					<div class="layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg3 " data-id="{{item.id}}" >
					<div class="videocard">
					<a href="#/xxcourse/homepage?tbId={{item.tbId }}&type={{ d.xxcoursetype }}">
						<div class="videoimg" style="background-image:url({{ G_File_Url+item.tbCover}})">
							{{#  if(item.status === 1){ }}
						  <div class="videostates" style="background: #ff5454;">已结束</div>
						{{#  }else { }} 
						 	<div class="videostates" >进行中</div>
						{{#  } }} 
						</div>
						<div class="videocont">
							<div class="videotitle">
							{{ item.tbTitle }}
							</div>
							<div class="videodata">
								{{item.createTime}}
									报名：{{ item.signUpNumber }}人
							</div>
						</div>
						</a>	</div>
					</div>
				{{#  }) }} 
				</script>

				<!-- 线下课程列表 end -->

				<!-- 实操课程列表 -->
				<div class="layui-tab-item">
					<div class="layui-row">
						<div class="layui-col-xs12">
							<div class="layui-card fllextopbox">
								<div class="">

									<a href="#/xxcourse/add" class="layui-btn">添加课程</a>
								</div>
								<form class="layui-form" action="">
									<div class="layui-inline">
										<input type="text" class="layui-input" id="dataxx2" placeholder="选择日期">
									</div>
									<div class="layui-inline ">
										<select name="tbType" lay-filter="xxtbTypefilter2">
											<option value=" ">全部</option>
											<option value="1">已结束</option>
											<option value="2">进行中</option>
										</select>
									</div>
									<div class=" tablesearch iconfont iconsousuo ">
										<input type="text" class="layui-input" id="xxkey2" placeholder="请输入搜索关键字">
									</div>
								</form>
							</div>
						</div>
					</div>
					<div class="layui-row " id="xxcards2">

					</div>
					<div class="pagerow">
						<div id="xxpage2">
							<div class="no404">
								<img src="../../images/noimg/noplay.png" >
							</div>
						</div>
					</div>


				</div>

				<script type="text/html" id="xxid2">
					{{#  layui.each(d.data, function(index, item){ }}
					<div class="layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg3 " data-id="{{item.id}}" >
					<div class="videocard">
					<a href="#/xxcourse/homepage?tbId={{item.tbId }}&type={{ d.xxcoursetype }}">
						<div class="videoimg" style="background-image:url({{ G_File_Url+item.tbCover}})">
							{{#  if(item.status === 1){ }}
						  <div class="videostates" style="background: #ff5454;">已结束</div>
						{{#  }else { }} 
						 	<div class="videostates">进行中</div>
						{{#  } }} 
						</div>
						<div class="videocont">
							<div class="videotitle">
							{{ item.tbTitle }}
							</div>
							<div class="videodata">
								{{item.createTime }}
									报名：{{ item.signUpNumber }}人
							</div>
						</div>
						</a>	</div>
					</div>
				{{#  }) }} 
				</script>

				<!-- 实操课程列表 end -->

				<!-- 回答问题 -->
				<div class="layui-tab-item">
					<table id="teachertable" lay-filter="HD_hash" lay-even lay-skin="nob">
				
					</table>
				</div>
				<script type="text/html" id="jshomebtnid">
					<a class="layui-btn" lay-event="look">查看</a>
					<a class="layui-btn" lay-event="del">删除</a>
				</script>
				<!-- 回答问题end -->
				
				<!-- 提问 -->
				<div class="layui-tab-item">
					<table id="TWtable" lay-filter="TW_hash" lay-even lay-skin="nob">
						
					</table>
				</div>
				<script type="text/html" id="TWhomebtnid">
					<a class="layui-btn" lay-event="look">查看</a>
					<a class="layui-btn" lay-event="del">删除</a>
				</script>
				<!-- 提问end -->
				
				
			</div>
		</div>
	</div>
	<div class="layui-row">
		<table id="js1" lay-filter="js_filter1" lay-even lay-skin="nob"></table>
	</div>


	<!-- 讲师头部布局 -->
	<script type="text/html" id="teachhtml">
		<div class="jshomeback">
		<div class="jshomel ">
			<div class="jshomehead" style="background-image:url({{d.photo}}) ;">
			</div>
		</div>
		<div class="jshomer ">
			<div class="jshometop">
				<h1>讲师主页</h1>
			</div>
			<div class="jshomebot ">
				<div class="layui-row">
				<div class="layui-col-xs6 layui-col-sm6 layui-col-md6 layui-col-lg6">
					<p class="jsttext">					{{d.realName}}</p>
					<p style="	color: #1875f0;">讲师类型：{{#  layui.each(d.produstsTypes, function(index, item){ }}
		<span class="jstype">	{{item.tbProdustsTypeName}}</span>
				{{# }) }}</p>
				</div>
					<div class="layui-col-xs2 layui-col-sm2 layui-col-md2 layui-col-lg2">
					<div class="jsttext">{{d.fansNumber}}</div>
					<p>粉丝</p>
				</div>
				<div class="layui-col-xs2 layui-col-sm2 layui-col-md2 layui-col-lg2">
					<div class="jsttext">{{d.focusNumber}}</div>
					<p>关注</p>
				</div>
				<div class="layui-col-xs2 layui-col-sm2 layui-col-md2 layui-col-lg2">
						<a href="#/teacher/add?tbId={{d.tbId}}"><div class="bjbtn" >
					
						编辑
					</div></a>
				</div>
					</div>
			</div>

	</div>
	</div>
	</script>


	<script type="text/html" id="StatusTp1">
		<!-- 类型（1上架，3下架）-->
  <input type="checkbox" name="tbType" value="{{d.id}}" lay-skin="switch"  lay-filter="istopDemo" {{ d.tbType == 1 ? 'checked' : '' }}>
</script>
	<!-- 脚本 -->
	<script>
		var itemjson, itemxxjson, itemxxjson2;
		layui.config({
			base: '/src/js/'
		}).use(['jquery', 'mockjs', 'table', 'sidebar', 'form', 'laydate', 'laytpl', 'laypage'], function() {
			var $ = layui.jquery,
				layer = layui.layer,
				table = layui.table,
				sidebar = layui.sidebar,
				form = layui.form,
				laytpl = layui.laytpl,
				laydate = layui.laydate,
				laypage = layui.laypage;
			var router = layui.router();
			// 获取当前的讲师主页
			POSTAJAX(LecturerGetById, {
				tbId: router.search.tbId
			}, function(res) {
				res.data.photo = IMG_URL + res.data.photo
				laytpl($("#teachhtml").html()).render(res.data, function(html) {
					$("#looktop1").html(html);
				});
			})


			// 视频列表
			itemjson = {
				currentPage: 1,
				pageSize: 24,
				search: '',
				tbType: '',
				startTime: '',
				stopTime: '',
				tbId: router.search.tbId
			}
			getvideofn(itemjson); //一开始初始化列表
			$('#videokey').keydown(function(event) {
				//搜索框输入进行回车的相应
				if (event.keyCode == 13) {
					itemjson.search = $('#videokey').val();
					getvideofn(itemjson);
				}
			})

			form.on('select(tbTypefilter)', function(data) {
				console.log(itemjson)
				itemjson.tbType = data.value
				getvideofn(itemjson);
			});

			function getvideofn(item) {
				POSTAJAX(LecturerGetVideo, item, function(res) {
					if (res.status == 200 && res.data != null) {
						$.each(res.data.data, function(idx, obj) {
							if (obj.createTime != null) {
								obj.createTime = obj.createTime.substring(0, 10)
							}
						})
						var data = res.data,
							view = document.getElementById('videocards');

						laydate.render({
							elem: '#datavideo' //指定元素
								,
							range: true,
							done: function(value, date, endDate) {
								if (date.year == undefined) {
									itemjson.startTime = '';
									itemjson.stopTime = '';

								} else {
									itemjson.startTime = date.year + '-' + date.month + '-' + date.date;
									itemjson.stopTime = endDate.year + '-' + endDate.month + '-' + endDate.date;
								}

								getvideofn(itemjson);
							}
						});
						laytpl($("#videoid").html()).render(data, function(html) {
							$("#videocards").html(html);
						});



						laypage.render({
							elem: 'videopage',
							curr: itemjson.currentPage,
							count: data.totalCount, //数据总数
							limit: 24, //每页的显示条数

							// 自定义排版。可选值有：count（总条目输区域）、prev（上一页区域）、page（分页区域）、next（下一页区域）、limit（条目选项区域）、refresh（页面刷新区域。注意：layui 2.3.0 新增） 、skip（快捷跳页区域）

							layout: ['count', 'limit', 'prev', 'page', 'next', 'skip'],
							theme: 'hhpage',
							jump: function(obj, first) {
								//obj包含了当前分页的所有参数，比如：
								console.log(obj.curr); //得到当前页，以便向服务端请求对应页的数据。
								console.log(obj.limit); //得到每页显示的条数

								itemjson = {
									currentPage: 1,
									pageSize: 24,
									search: '',
									tbType: '',
									startTime: '',
									stopTime: '',
									tbId: router.search.tbId
								}
								//首次不执行
								if (!first) {
									//do something
									getvideofn(itemjson)
								}
								// getvideofn(itemjson)

							}
						});

					} else {
						layer.msg("当前搜索条件没有视频数据哦", {
							'icon': 5
						})
					}

				})
			}
			//视频列表end

			//线下课程
			itemxxjson = {
				currentPage: 1,
				pageSize: 24,
				search: '',
				tbType: '',
				tbId: router.search.tbId,
				startTime: '',
				stopTime: '',
				type: 1
			}
			getxxofn(itemxxjson); //一开始初始化列表

			$('#xxkey').keydown(function(event) {
				//搜索框输入进行回车的相应
				if (event.keyCode == 13) {
					itemxxjson.search = $('#xxkey').val();
					getxxofn(itemxxjson);
				}
			})

			form.on('select(xxtbTypefilter)', function(data) {
				console.log(itemxxjson)
				itemxxjson.tbType = data.value
				getxxofn(itemxxjson);
			});

			function getxxofn(item) {
				POSTAJAX(LecturerGetXX, item, function(res) {
					if (res.status == 200 && res.data != null) {
						$.each(res.data.data, function(idx, obj) {
							if (obj.createTime != null) {
								obj.createTime = obj.createTime.substring(0, 10)
							}
						})
						var data = res.data,
						view = document.getElementById('xxcards');
						laydate.render({
							elem: '#dataxx' //指定元素
								,
							range: true,
							done: function(value, date, endDate) {
								if (date.year == undefined) {
									itemxxjson.startTime = '';
									itemxxjson.stopTime = '';

								} else {
									itemxxjson.startTime = date.year + '-' + date.month + '-' + date.date;
									itemxxjson.stopTime = endDate.year + '-' + endDate.month + '-' + endDate.date;
								}

								getxxofn(itemxxjson);
							}
						});
						data.xxcoursetype = 1;
						laytpl($("#xxid").html()).render(data, function(html) {
							$("#xxcards").html(html);
						});



						laypage.render({
							elem: 'xxpage',
							curr: itemxxjson.currentPage,
							count: data.totalCount, //数据总数
							limit: 24, //每页的显示条数

							// 自定义排版。可选值有：count（总条目输区域）、prev（上一页区域）、page（分页区域）、next（下一页区域）、limit（条目选项区域）、refresh（页面刷新区域。注意：layui 2.3.0 新增） 、skip（快捷跳页区域）

							layout: ['count', 'limit', 'prev', 'page', 'next', 'skip'],
							theme: 'hhpage',
							jump: function(obj, first) {
								//obj包含了当前分页的所有参数，比如：
								console.log(obj.curr); //得到当前页，以便向服务端请求对应页的数据。
								console.log(obj.limit); //得到每页显示的条数

								itemxxjson = {
									currentPage: 1,
									pageSize: 24,
									search: '',
									tbType: '',
									tbId: router.search.tbId,
									startTime: '',
									stopTime: '',
									type: 1
								}

								//首次不执行
								if (!first) {
									//do something
									getxxofn(itemxxjson)
								}
								// getxxofn(itemxxjson)

							}
						});

					} else {
						layer.msg("当前搜索没有线下课程数据哦", {
							'icon': 5
						})
					}

				})
			}
			//线下课程 end

			//实操课程
			itemxxjson2 = {
				currentPage: 1,
				pageSize: 24,
				search: '',
				tbType: '',
				tbId: router.search.tbId,
				startTime: '',
				stopTime: '',
				type: 2
			}
			getxxofn2(itemxxjson2); //一开始初始化列表

			$('#xxkey2').keydown(function(event) {
				//搜索框输入进行回车的相应
				if (event.keyCode == 13) {
					itemxxjson2.search = $('#xxkey2').val();
					getxxofn(itemxxjson2);
				}
			})

			form.on('select(xxtbTypefilter2)', function(data) {
				itemxxjson2.tbType = data.value
				getxxofn(itemxxjson2);
			});

			function getxxofn2(item) {
				POSTAJAX(LecturerGetXX, item, function(res) {
					if (res.status == 200 && res.data != null) {
						$.each(res.data.data, function(idx, obj) {
							if (obj.createTime != null) {
								obj.createTime = obj.createTime.substring(0, 10)
							}
						})
						var data = res.data,
							view = document.getElementById('xxcards2');

						laydate.render({
							elem: '#dataxx2' //指定元素
								,
							range: true,
							done: function(value, date, endDate) {
								if (date.year == undefined) {
									itemxxjson2.startTime = '';
									itemxxjson2.stopTime = '';

								} else {
									itemxxjson2.startTime = date.year + '-' + date.month + '-' + date.date;
									itemxxjson2.stopTime = endDate.year + '-' + endDate.month + '-' + endDate.date;
								}

								getxxofn(itemxxjson2);
							}
						});
						data.xxcoursetype = 2;
						laytpl($("#xxid2").html()).render(data, function(html) {
							$("#xxcards2").html(html);
						});



						laypage.render({
							elem: 'xxpage2',
							curr: itemxxjson2.currentPage,
							count: data.totalCount, //数据总数
							limit: 24, //每页的显示条数

							// 自定义排版。可选值有：count（总条目输区域）、prev（上一页区域）、page（分页区域）、next（下一页区域）、limit（条目选项区域）、refresh（页面刷新区域。注意：layui 2.3.0 新增） 、skip（快捷跳页区域）

							layout: ['count', 'limit', 'prev', 'page', 'next', 'skip'],
							theme: 'hhpage',
							jump: function(obj, first) {
								itemxxjson2 = {
									currentPage: 1,
									pageSize: 24,
									search: '',
									tbType: '',
									tbId: router.search.tbId,
									startTime: '',
									stopTime: '',
									type: 2
								}

								//首次不执行
								if (!first) {
									//do something
									getxxofn2(itemxxjson2)
								}
								// getxxofn(itemxxjson)

							}
						});

					} else {
						layer.msg("当前搜索没有小班课程数据哦", {
							'icon': 5
						})
					}

				})
			}

			//实操课程 end
			
			//回答问题
			var typetable = table.render({
				size: 'lg',
				where: {
					tbId: router.search.tbId
				},
				id: 'teachertableid',
				contentType: 'application/json',
				pageSize: 20,
				elem: '#teachertable',
				toolbar: '#teachertoolbar',
				height: '',
				url: HH_URL + LecturerGetHD, //数据接口
				page: true, //开启分页
				even: true,
				skin: 'nob',
				cellMinWidth: 100,
				cols: [
					[ //表头
						{
							type: 'numbers',
							title:'序号',
							width:70
						},{
							field: 'tbId',
							title: 'ID',
							hide: true
						},{
							field: 'tbTitle',
							title: '问答标题',
							width: 400
						}, {
							field: 'bq',
							title: '标签',
							width: 300,
							templet: function(d) {
								try {
									var questionsTypes = ''
									if (d.questionsTypes.length > 0) {
										$.each(d.questionsTypes, function(idx, obj) {
											if (idx > 0) {
												questionsTypes += ' / '
											}
											questionsTypes += obj;
										})
										return questionsTypes;
									} else {
										return '无'
									}
								} catch (e) {
									return '无'
									//TODO handle the exception
								}
							},
						}, {
							field: 'praiseNumber',
							title: '点赞人数',
							width: 100
						}, {
							field: 'shareNumber',
							title: '分享人数',
							width: 100
						},  {
							field: 'browseNumber',
							title: '浏览次数',
							width: 100
						}, {
							field: 'answerNumber',
							title: '回答人数',
							width: 100
						}, {
							title: '操作',
							fixed: 'right',
							width: 180,
							toolbar: '#jshomebtnid'
						}
					]
				],
				done: function(res, curr, cont) {
					// console.log(res)
					table.render()
					$('#tablesearchid').keydown(function(event) {
						if (event.keyCode == 13) {
							tablesearchidval = $('#tablesearchid').val();
							typetable.reload({
								where: { //设定异步数据接口的额外参数，任意设
									search: $('#tablesearchid').val(),
								},
								page: {
									curr: 1 //重新从第 1 页开始
								}
			
							});
			
							setTimeout(function() {
								$('#tablesearchid').val(tablesearchidval)
							})
						}
					})
				}
			});
			
			
			//监听工具条
			table.on('tool(HD_hash)', function(obj) { //注：tool是工具条事件名，test是table原始容器的属性 lay-filter="对应的值"
				var data = obj.data; //获得当前行数据
				var layEvent = obj.event; //获得 lay-event 对应的值（也可以是表头的 event 参数对应的值）
				var tr = obj.tr; //获得当前行 tr 的DOM对象
				switch (layEvent) {
					case 'look':
						break;
					case 'del':
					layer.confirm('确认删除该回答吗?', function(index) {
						POSTAJAX(LecturerDelHD, {
							ids:[obj.data.tbId]
						}, function(res) {
							layer.close(index);
							layer.msg(res.msg);
							if (res.status == 200) {
								obj.del(); //删除对应行（tr）的DOM结构，并更新缓存
					
							}
					
						})
					
						//向服务端发送删除指令
					});
						break;
					default:
						break;
				}
			});
				//回答问题 end
				
				//提问
				var TWtable = table.render({
					size: 'lg',
					where: {
						tbId: router.search.tbId
					},
					id: 'TWtableid',
					contentType: 'application/json',
					pageSize: 20,
					elem: '#TWtable',
					toolbar: '#TWtoolbar',
					height: '',
					url: HH_URL + LecturerGetTW, //数据接口
					page: true, //开启分页
					even: true,
					skin: 'nob',
					cellMinWidth: 100,
					cols: [
						[ //表头
							{
								type: 'numbers',
								title:'序号',
								width:70
							},{
								field: 'tbId',
								title: 'ID',
								hide: true
							},{
								field: 'tbTitle',
								title: '问答标题',
								width: 400
							}, {
								field: 'bq',
								title: '标签',
								width: 300,
								templet: function(d) {
									try {
										var questionsTypes = ''
										if (d.questionsTypes.length > 0) {
											$.each(d.questionsTypes, function(idx, obj) {
												if (idx > 0) {
													questionsTypes += ' / '
												}
												questionsTypes += obj;
											})
											return questionsTypes;
										} else {
											return '无'
										}
									} catch (e) {
										return '无'
										//TODO handle the exception
									}
								},
							}, {
								field: 'praiseNumber',
								title: '点赞人数',
								width: 100
							}, {
								field: 'shareNumber',
								title: '分享人数',
								width: 100
							},  {
								field: 'browseNumber',
								title: '浏览次数',
								width: 100
							}, {
								field: 'answerNumber',
								title: '回答人数',
								width: 100
							}, {
								title: '操作',
								fixed: 'right',
								width: 180,
								toolbar: '#TWhomebtnid'
							}
						]
					],
					done: function(res, curr, cont) {
						// console.log(res)
						table.render()
						$('#TWsearchid').keydown(function(event) {
							if (event.keyCode == 13) {
								tableTWidval = $('#tableTWid').val();
								typetable.reload({
									where: { //设定异步数据接口的额外参数，任意设
										search: $('#tableTWid').val(),
									},
									page: {
										curr: 1 //重新从第 1 页开始
									}
				
								});
				
								setTimeout(function() {
									$('#tableTWid').val(tableTWidval)
								})
							}
						})
					}
				});
				
				
				//监听工具条
				table.on('tool(TW_hash)', function(obj) { //注：tool是工具条事件名，test是table原始容器的属性 lay-filter="对应的值"
					var data = obj.data; //获得当前行数据
					var layEvent = obj.event; //获得 lay-event 对应的值（也可以是表头的 event 参数对应的值）
					var tr = obj.tr; //获得当前行 tr 的DOM对象
					switch (layEvent) {
						case 'look':
							break;
						case 'del':
						layer.confirm('确认删除该回答吗?', function(index) {
							POSTAJAX(LecturerDelTW, {
								ids:[obj.data.tbId]
							}, function(res) {
								layer.close(index);
								layer.msg(res.msg);
								if (res.status == 200) {
									obj.del(); //删除对应行（tr）的DOM结构，并更新缓存
						
								}
						
							})
						
							//向服务端发送删除指令
						});
							break;
						default:
							break;
					}
				});
				//提问 end
		})
	</script>
	<!-- 样式 -->
	<style scoped>
		.jshomeback {
			width: 100%;
			background-image: url(../../images/1111.jpg);
			padding-top: 160px;
			height: 265px;
			margin-bottom: 30px;
			border-radius: 5px;
		}

		.jshomebox {
			clear: both;
			display: table;
			width: 100%;
			padding: 49px 31px 0 31px;
			border-radius: 5px;
			margin-bottom: 30px;

		}

		.jshomel {
			width: 160px;
			/* float: left; */
			position: absolute;
			top: 94px;
			left: 55px;
			z-index: 1;

		}

		.jshomehead {
			width: 160px;
			height: 160px;
			border-radius: 50%;
			border: 6px solid #fff;
			background-size: 120% 120%;
			background-position: center center;
		}

		.jshomebot .layui-row {
			max-width: 680px;
		}

		.jshomer {
			padding-left: 232px;
			position: relative;
			background: #fff;
			height: 105px;
			border-radius: 0 0 5px 5px;
		}

		.jshometop {

			position: absolute;
			top: -48px;
			color: #fff;

		}

		.jshomebot {
			padding: 10px 0;
			text-align: center;

		}

		.jstitle {

			color: #71787e;
			font-size: 21px;
			line-height: 2;

		}

		.jstype {
			color: #1875f0;
			display: inline-block;
		}

		.jstype:after {
			content: ' /';

		}

		.jstype:last-child:after {
			content: '';
		}

		.bjbtn {
			width: 98px;
			height: 40px;
			background-color: #1875f0;
			border-radius: 4px;
			font-size: 16px;
			color: #ffffff;
			line-height: 40px;
			margin: 0 auto;
			margin-top: 8px;
		}

		.jshomebot .layui-row>div {
			padding: 15px 0;
			border-right: 1px solid #f6f9fe;
		}

		.jsttext {
			font-size: 18px;
			margin-bottom: 8px;
		}

		.jshomebot .layui-row>div p:last-child {
			font-size: 14px;
			color: #71787e;
		}
		
		
		@media (max-width: 1024px) {

			.jshomehead {
			    width: 120px;
			    height: 120px;
			   
			}
.jshomel {
    width: 122px;
    /* float: left; */
   
    top: 83px;
    left: 30px;
   
}
		.jshomer {
		    padding-left: 152px;
		   
		    padding-right: 30px;
		  
		    height: 101px;
		  
		}.jshomeback {
    width: 100%;
    background-image: url(../../images/1111.jpg);
    padding-top: 129px;
    height: 230px;
    margin-bottom: 1px;
}
.jshometop h1{
	font-size: 21px;
}
.jshomebot{
	padding: 0;
}
.jsttext {
    font-size: 16px;
    margin-bottom: 8px;
}.bjbtn {
    width: 73px;
    height: 33px;
    
    font-size: 14px;
   
    line-height: 35px;
    margin: 0 auto;
     margin-top: 10px;
}.jshomebot .layui-row>div {
    padding: 25px 0;
    border-right: 1px solid #f6f9fe;
}.jshomebot .layui-row>div p:last-child {
    font-size: 14px;
    color: #71787e;
    height: 1.5em;
    overflow: hidden;
    line-height: 1.5;
}
		}
		
	</style>
